home *** CD-ROM | disk | FTP | other *** search
/ 500 MB Nyheder Direkte fra Internet 9 / 500 MB nyheder direkte fra internet CD 9.iso / start / zipped / dos / novell / sdk.exe / SDK / INCLUDE / NWDPATH.H < prev    next >
C/C++ Source or Header  |  1995-05-09  |  5KB  |  225 lines

  1. /******************************************************************************
  2.  
  3.   $Workfile:   nwdpath.h  $
  4.   $Revision:   1.14  $
  5.   $Modtime::   08 May 1995 16:51:10                        $
  6.   $Copyright:
  7.  
  8.   Copyright (c) 1989-1995 Novell, Inc.  All Rights Reserved.                      
  9.  
  10.   THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  11.   TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  12.   COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  13.   EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  14.   WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  15.   OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  16.   CRIMINAL AND CIVIL LIABILITY.$
  17.  
  18.  *****************************************************************************/
  19.  
  20. #if ! defined ( NWDPATH_H )
  21. #define NWDPATH_H
  22.  
  23. #if ! defined ( NTYPES_H )
  24. #include "ntypes.h"
  25. #endif
  26.  
  27. #if ! defined ( NWCALDEF_H )
  28. #include "nwcaldef.h"
  29. #endif
  30.  
  31. #include "npackon.h"
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. /* status values for NWGetDriveStatus */
  38. #define NW_UNMAPPED_DRIVE     0x0000
  39. #define NW_FREE_DRIVE         0x0000
  40. #define NW_CDROM_DRIVE        0x0400
  41. #define NW_LOCAL_FREE_DRIVE   0x0800
  42. #define NW_LOCAL_DRIVE        0x1000
  43. #define NW_NETWORK_DRIVE      0x2000
  44. #define NW_LITE_DRIVE         0x4000
  45. #define NW_PNW_DRIVE          0x4000
  46. #define NW_NETWARE_DRIVE      0x8000
  47.  
  48. /* return error for NWGetDriveStatus */
  49. #define NW_INVALID_DRIVE       15
  50.  
  51. /* defined for pathFormat parameter in NWGetDriveStatus */
  52. #define NW_FORMAT_NETWARE       0
  53. #define NW_FORMAT_SERVER_VOLUME 1
  54. #define NW_FORMAT_DRIVE         2
  55. #define NW_FORMAT_UNC           3
  56.  
  57. NWCCODE N_API NWSetDriveBase
  58. (
  59.    nuint16        driveNum,
  60.    NWCONN_HANDLE  conn,
  61.    NWDIR_HANDLE   dirHandle,
  62.    pnstr8         dirPath,
  63.    nuint16        driveScope
  64. );
  65.  
  66. NWCCODE N_API NWSetInitDrive
  67. (
  68.    NWCONN_HANDLE  conn
  69. );
  70.  
  71. NWCCODE N_API NWSetSearchDriveVector
  72. (
  73.    pnstr8   vectorBuffer
  74. );
  75.  
  76. NWCCODE N_API NWGetSearchDriveVector
  77. (
  78.    pnstr8   vectorBuffer
  79. );
  80.  
  81. NWCCODE N_API NWDeleteDriveBase
  82. (
  83.    nuint16  driveNum,
  84.    nuint16  driveScope
  85. );
  86.  
  87. NWCCODE N_API NWGetPathFromDirectoryBase  /* 3.x & 4.x file servers */
  88. (
  89.    NWCONN_HANDLE  conn,
  90.    nuint8         volNum,
  91.    nuint32        dirBase,
  92.    nuint8         namSpc,
  93.    pnuint8        len,
  94.    pnstr8         pathName
  95. );
  96.  
  97. NWCCODE N_API NWGetPathFromDirectoryEntry  /* 2.x file servers only */
  98. (
  99.    NWCONN_HANDLE  conn,
  100.    nuint8         volNum,
  101.    nuint16        dirEntry,
  102.    pnuint8        len,
  103.    pnstr8         pathName
  104. );
  105.  
  106. NWCCODE N_API NWGetDrivePathConnRef
  107. (
  108.    nuint16        driveNum,
  109.    nuint16        mode,
  110.    pnuint32       connRef,
  111.    pnstr8         basePath,
  112.    pnuint16       driveScope
  113. );
  114.  
  115. NWCCODE N_API NWGetDrivePath
  116. (
  117.    nuint16        driveNum,
  118.    nuint16        mode,
  119.    NWCONN_HANDLE N_FAR * conn,
  120.    pnstr8         basePath,
  121.    pnuint16       driveScope
  122. );
  123.  
  124. NWCCODE N_API NWGetDriveInformation
  125. (
  126.    nuint16        driveNum,
  127.    nuint16        mode,
  128.    NWCONN_HANDLE N_FAR * conn,
  129.    NWDIR_HANDLE N_FAR * dirHandle,
  130.    pnuint16       driveScope,
  131.    pnstr8         dirPath
  132. );
  133.  
  134. NWCCODE N_API NWGetDriveInfoConnRef
  135. (
  136.    nuint16        driveNum,
  137.    nuint16        mode,
  138.    pnuint32       connRef,
  139.    NWDIR_HANDLE N_FAR * dirHandle,
  140.    pnuint16       driveScope,
  141.    pnstr8         dirPath
  142. );
  143.  
  144. NWCCODE N_API NWGetDriveStatus
  145. (
  146.    nuint16        driveNum,
  147.    nuint16        pathFormat,
  148.    pnuint16       status,
  149.    NWCONN_HANDLE N_FAR * conn,
  150.    pnstr8         rootPath,
  151.    pnstr8         relPath,
  152.    pnstr8         fullPath
  153. );
  154.  
  155. NWCCODE N_API NWGetDriveStatusConnRef
  156. (
  157.    nuint16        driveNum,
  158.    nuint16        pathFormat,
  159.    pnuint16       status,
  160.    pnuint32       connRef,
  161.    pnstr8         rootPath,
  162.    pnstr8         relPath,
  163.    pnstr8         fullPath
  164. );
  165.  
  166. NWCCODE N_API NWGetFirstDrive
  167. (
  168.    pnuint16       firstDrive
  169. );
  170.  
  171. NWCCODE N_API NWParseNetWarePath
  172. (
  173.    pnstr8         path,
  174.    NWCONN_HANDLE N_FAR * conn,
  175.    NWDIR_HANDLE N_FAR * dirHandle,
  176.    pnstr8         newPath
  177. );
  178.  
  179. NWCCODE N_API NWParseNetWarePathConnRef
  180. (
  181.    pnstr8         path,
  182.    pnuint32       connRef,
  183.    NWDIR_HANDLE N_FAR * dirHandle,
  184.    pnstr8         newPath
  185. );
  186.  
  187. NWCCODE N_API NWParsePathConnRef
  188. (
  189.    pnstr8         path,
  190.    pnstr8         serverName,
  191.    pnuint32       connRef,
  192.    pnstr8         volName,
  193.    pnstr8         dirPath
  194. );
  195.  
  196. NWCCODE N_API NWParsePath
  197. (
  198.    pnstr8         path,
  199.    pnstr8         serverName,
  200.    NWCONN_HANDLE N_FAR * conn,
  201.    pnstr8         volName,
  202.    pnstr8         dirPath
  203. );
  204.  
  205. pnstr8  N_API NWStripServerOffPath
  206. (
  207.    pnstr8         path,
  208.    pnstr8         server
  209. );
  210.  
  211. NWCCODE N_API NWCreateUNCPath
  212. (
  213.    NWCONN_HANDLE  conn,
  214.    NWDIR_HANDLE   dirHandle,
  215.    pnstr8         path,
  216.    pnstr8         UNCPath
  217. );
  218.  
  219. #ifdef __cplusplus
  220. }
  221. #endif
  222.  
  223. #include "npackoff.h"
  224. #endif
  225.